package cn.stylefeng.guns.modular.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.stylefeng.guns.modular.rest.aop.UserAop;
import cn.stylefeng.guns.sys.modular.system.entity.FileInfo;
import cn.stylefeng.guns.sys.modular.system.service.FileInfoService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;


/**
 * 文件表控制器
 *
 * @author zhucx
 * @Date 2020-05-25 14:00:44
 */
@Controller
@RequestMapping("/rest/file")
public class fileController extends BaseController {

    @Autowired
    private UserAop userAop;

    @Autowired
    private FileInfoService fileInfoService;

    /**
     * 查询列表
     * @author zhucx
     * @Date 2020-09-9
     */
    @RequestMapping("/list")
    @ResponseBody
    public ResponseData list(FileInfo fileInfo) {
        return ResponseData.success(fileInfoService.findListBySpec(fileInfo));
    }

}


